package com.tebiecloud.base.client.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tebiecloud.common.mybatis.base.entity.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 登录日志
 * @author tebie
 * @date 2019-08-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class BaseAccountLogs extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 日志ID
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 登录时间
     */
    private Date loginTime;

    /**
     * 登录Ip
     */
    private String loginIp;

    /**
     * 登录设备
     */
    private String loginAgent;

    /**
     * 登录次数
     */
    private Integer loginNums;

    /**
     * 用户Id
     */
    private Long userId;

    /**
     * 账号标识
     */
    private String account;

    /**
     * 账号类型
     */
    private String accountType;

    /**
     * 账号ID
     */
    private Long accountId;

    /**
     * 账号域
     */
    private String domain;

}
